package com.company.restaurant.dto.util;

import com.company.restaurant.dto.LoginRequest;
import com.company.restaurant.dto.MessageIds;

import java.util.HashMap;
import java.util.Map;

/**
 * Description of class.
 * Created 5/16/14 2:45 PM
 *
 * @author andrey.rodin@playtech.com
 */

public final class MessageTypeMapper {

    private static Map<MessageIds, Class> idsClassMap = new HashMap<>();

    static {
        idsClassMap.put(MessageIds.LOGIN_REQUEST, LoginRequest.class);
    }

    public static Class getTypeById(MessageIds id) {
        return idsClassMap.get(id);
    }
}
